package com.ruoyi.exam.domain;

import java.util.Date;
import com.fasterxml.jackson.annotation.JsonFormat;
import com.baomidou.mybatisplus.annotation.TableName;
import com.ruoyi.common.annotation.Excel;
import com.ruoyi.common.core.domain.BaseEntity;
import lombok.Data;
import lombok.EqualsAndHashCode;
import lombok.ToString;
import lombok.experimental.Accessors;


/**
 * 题目导入记录对象 exam_question_import_log
 *
 * @author Tellsea
 * @date 2025-05-30
 */
@Data
@Accessors(chain = true)
@ToString(callSuper = true)
@EqualsAndHashCode(callSuper = true)
@TableName("exam_question_import_log")
public class ExamQuestionImportLog extends BaseEntity {

    /**
     * 日志ID
     */
    private Long logId;

    /**
     * 文件名
     */
    @Excel(name = "文件名")
    private String fileName;

    /**
     * 文件路径
     */
    @Excel(name = "文件路径")
    private String filePath;

    /**
     * 总数量
     */
    @Excel(name = "总数量")
    private Long totalCount;

    /**
     * 成功数量
     */
    @Excel(name = "成功数量")
    private Long successCount;

    /**
     * 失败数量
     */
    @Excel(name = "失败数量")
    private Long failCount;

    /**
     * 错误信息
     */
    @Excel(name = "错误信息")
    private String errorMessage;

    /**
     * 导入状态（0进行中 1成功 2失败）
     */
    @Excel(name = "导入状态", readConverterExp = "0=进行中,1=成功,2=失败")
    private String importStatus;

    /**
     * 完成时间
     */
    @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss")
    @Excel(name = "完成时间", width = 30, dateFormat = "yyyy-MM-dd HH:mm:ss")
    private Date finishTime;

}
